java program to find positive or negative number in array